package org.example.testdemo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.example.testdemo.pojo.Declare;
import org.example.testdemo.pojo.PageReq;
import org.example.testdemo.pojo.combination.DeclareInformation;

import java.math.BigDecimal;

public interface DeclareService {

    public Integer addDeclare(Declare declare);

    public IPage<DeclareInformation> getDeclareInformation(String pId, String yearId, String intervalId,Integer state,PageReq req,String userId);

    public Declare findByDeclareId(String declareId);

    public Integer updateState(Declare declare);

    public Integer deleteDeclare(String declareId);

    public BigDecimal getAmount(String pId);

    public DeclareInformation getDeclareInformationSingle(String declareId);

    public Integer updateDeclare(Declare declare);

    public IPage<DeclareInformation> findByDeclareInformationAll(String pId, String yearId, String intervalId,Integer state,PageReq req,String userId);

}
